import initProviders from "./initProviders";
import initCornerstoneDICOMImageLoader from "./initCornerstoneDICOMImageLoader";
import initVolumeLoader from "./initVolumeLoader";
import { init as csRenderInit } from "@cornerstonejs/core";
import { init as csToolsInit } from "@cornerstonejs/tools";

export default async function initDemo() {
  initProviders();
  initCornerstoneDICOMImageLoader();
  initVolumeLoader();
  await csRenderInit({
    gpuTier: {
      // device: undefined,
      // fps: undefined,
      // gpu: "nvidia, nvidia geforce rtx 3060 (0x00002487) (ANGLE (NVIDIA, NVIDIA GeForce RTX 3060 (0x00002487) Direct3D11 vs_5_0 ps_5_0, D3D11))",
      // isMobile: true,
      tier: 1
      // type: "FALLBACK",
    }
  });
  await csToolsInit();
}
